package ch1;

import java.util.Scanner;

public class Rich2 {

	public static void main(String[] args) {
		int i, j;// 分别表示老张和老徐的存款
		Scanner in = new Scanner(System.in);
		System.out.println("老张的存款：");
		i = in.nextInt();
		System.out.println("老徐的存款：");
		j = in.nextInt();
		// 是不是都是有钱人
//		boolean rich = i > 1000000 && j > 1000000;
//		System.out.println("老张和老徐都是有钱人？" + rich);

		boolean rich = i > 1000000 || j > 1000000;
		System.out.println("老张和老徐有一个是有钱人？" + rich);

		boolean isLaozhangQian = !(i >= 0);// i<0
		System.out.println("老张欠银行钱？" + isLaozhangQian);
	}

}
